<template>
  <div v-if="$route.query.orderId">
    <detail></detail>
  </div>
  <div v-else>
    <allOrder></allOrder>
  </div>
</template>

<script>
import allOrder from "./components/allOrder";
import detail from "./components/detail";
export default {
  name: "orderPage",
  components: {
    allOrder,
    detail,
  },
};
</script>

<style lang="scss" scoped></style>
